package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.LiveRoomMapper;
import com.ruoyi.project.system.domain.LiveRoom;
import com.ruoyi.project.system.service.ILiveRoomService;

/**
 * 直播间数据Service业务层处理
 * 
 * @author david
 * @date 2025-06-11
 */
@Service
public class LiveRoomServiceImpl implements ILiveRoomService 
{
    @Autowired
    private LiveRoomMapper liveRoomMapper;

    /**
     * 查询直播间数据
     * 
     * @param liveRoomId 直播间数据主键
     * @return 直播间数据
     */
    @Override
    public LiveRoom selectLiveRoomByLiveRoomId(String liveRoomId)
    {
        return liveRoomMapper.selectLiveRoomByLiveRoomId(liveRoomId);
    }

    /**
     * 查询直播间数据列表
     * 
     * @param liveRoom 直播间数据
     * @return 直播间数据
     */
    @Override
    public List<LiveRoom> selectLiveRoomList(LiveRoom liveRoom)
    {
        return liveRoomMapper.selectLiveRoomList(liveRoom);
    }

    /**
     * 新增直播间数据
     * 
     * @param liveRoom 直播间数据
     * @return 结果
     */
    @Override
    public int insertLiveRoom(LiveRoom liveRoom)
    {
        return liveRoomMapper.insertLiveRoom(liveRoom);
    }

    /**
     * 修改直播间数据
     * 
     * @param liveRoom 直播间数据
     * @return 结果
     */
    @Override
    public int updateLiveRoom(LiveRoom liveRoom)
    {
        return liveRoomMapper.updateLiveRoom(liveRoom);
    }

    /**
     * 批量删除直播间数据
     * 
     * @param liveRoomIds 需要删除的直播间数据主键
     * @return 结果
     */
    @Override
    public int deleteLiveRoomByLiveRoomIds(String[] liveRoomIds)
    {
        return liveRoomMapper.deleteLiveRoomByLiveRoomIds(liveRoomIds);
    }

    /**
     * 删除直播间数据信息
     * 
     * @param liveRoomId 直播间数据主键
     * @return 结果
     */
    @Override
    public int deleteLiveRoomByLiveRoomId(String liveRoomId)
    {
        return liveRoomMapper.deleteLiveRoomByLiveRoomId(liveRoomId);
    }
}
